// 备件签收
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取主页面货运单
export const getWayBillList = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/partOrder/deliverOrders`, { params });

// 根据货运单id获取货运单详情
export const getWayBillDetail = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/partOrder/Detail/`, { params });

// 签收
export const wayBillSign = params => axios.put(`${SERVER.DMSCLOUD_PART}/basedata/partOrder/sign`, { ...params }, { timeout: 60000 });

// 获取税率
// export const queryTex = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/partInfos/parms`, { params });
export const queryTex = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/params/getParaValue?module=SPA&para=BJCGSL`);
